using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace Os.WebUI.Models
{
	[PropertiesMustMatch("NewPassword", "ConfirmPassword", ErrorMessage = "A senha antiga e a senha nova não conferem.")]
	public class ChangePasswordModel
	{
		[DisplayName("senha atual"), Required, DataType(DataType.Password)]
		public string OldPassword
		{
			get;
			set;
		}
		[ValidatePasswordLength, DisplayName("Nova senha"), Required, DataType(DataType.Password)]
		public string NewPassword
		{
			get;
			set;
		}
		[DisplayName("Confirmar nova senha"), Required, DataType(DataType.Password)]
		public string ConfirmPassword
		{
			get;
			set;
		}
	}
}
